package model;

public class Category {
    /**
     * 商品分类
     */
    private int no;   //分类编号
    private String name;   //分类名称

    public Category(int no,String name) {
        this.no = no;
        this.name = name;
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "【商品分类】" +
                "编号" + no +
                ", 分类名称" + name ;
    }
}
